﻿<!doctype html>
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">

<head th:replace="~{/public::public-head}">
</head>


<body class="template-color-1">


    <div id="main-wrapper">
        <div th:insert="~{/public::navigate}"></div>
        <div style="height: 100px; border-bottom: 1px solid #e2e4ea"></div>
        <div th:insert="~{/public::sideBillboard}"></div>


        <!-- 标题 Start -->
        <div class="breadcrumb-section section bg_color--5 pt-60 pb-60">
            <div id="forbidden" hidden> 当前账号已被限制使用 </div>
            <span  sec:authorize="isAuthenticated()" sec:authentication="principal.accountStatus"
                   type="text" id="accountStatus" hidden></span>

            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <div class="page-breadcrumb-content">
                            <ul class="page-breadcrumb">
                                <li><a th:href="@{/home/homepage}">首页</a></li>
                                <li><a th:href="@{/jobs/joblisting/-}">工作列表</a></li>
                                <li>发布职位</li>
                            </ul>
                            <h1>发布职位</h1>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 标题 End -->

        <!-- 工作信息 Start -->
        <section class="job-information-area">
            <div class="">
                <div class="job-information">
                    <h3>工作信息</h3>

                    <div sec:authentication="authorities" hidden id="authorities"></div>
                    <div sec:authorize="isAuthenticated()" sec:authentication="principal.userId"
                         type="text" id="userId" hidden></div>
                    <div sec:authorize="isAuthenticated()" sec:authentication="principal.userName"
                         type="text" id="userName" hidden></div>

                    <form>
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="form-group">
                                    <label>职称*</label>
                                    <input id="jobName" class="form-control" type="text" name="title">
                                </div>
                            </div>

                            <div class="col-lg-6 col-md-6">
                                <div class="form-group">
                                    <label>所属行业*</label>
                                    <input id="industry" class="form-control" type="text" name="title" style="height: 50px;">
                                </div>
                            </div>

                            <div class="col-lg-6 col-md-6">
                                <div class="form-group" id="jobType">
                                    <label>职位类型*</label>
                                    <select class="nice-select" style="display: none;">
                                    </select>
                                </div>
                            </div>

                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label>最低工资*</label>
                                    <input id="salaryMin" onchange="click_minSalary()" class="form-control" type="text" name="title" style="height: 50px;">
                                </div>
                            </div>

                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label>最高工资*</label>
                                    <input id="salaryMax" onchange="click_maxSalary()" class="form-control" type="text" name="title" style="height: 50px;">
                                </div>
                                <div id="salary-error" style="text-align: center; color: red; height: 35px"></div>
                            </div>

                            <div class="col-lg-4">
                                <div class="form-group" id="salary_util">
                                    <label>工资单位*</label>
                                    <select class="nice-select" style="display: none;" >
                                    </select>
                                </div>
                            </div>

                            <div class="col-lg-6 col-md-6">
                                <div class="form-group" id="experienceList">
                                    <label>工作经验*</label>
                                    <select class="nice-select" style="display: none;">
                                    </select>
                                </div>
                            </div>

                            <div class="col-lg-6 col-md-6">
                                <div class="form-group" id="educationList">
                                    <label>教育水平*</label>
                                    <select class="nice-select" style="display: none;">
                                    </select>
                                </div>
                            </div>

                            <div class="col-lg-12">
                                <div class="form-group">
                                    <label>职位描述*</label>
                                    <textarea id="introduce" name="message" class="form-control" rows="5"></textarea>
                                </div>
                            </div>

                            <div class="col-lg-12">
                                <div class="form-group">
                                    <label>工作要求*</label>
                                    <textarea id="requirement" name="message" class="form-control" rows="5"></textarea>
                                </div>
                            </div>

                            <div class="col-lg-12">
                                <div class="form-group">
                                    <label>所需技能 (如有多个,需要用英文逗号隔开 ; 如:java,python)</label>
                                    <input id="skills" class="form-control" type="text" name="title">
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12">
                                <button class="ht-btn theme-btn theme-btn-one" onclick="postJob(); return false;">
                                    发布工作
                                </button>
                        </div>
                    </form>
                </div>
            </div>
        </section>
        <!-- 工作信息 End -->

        <div th:insert="~{/public::footer}"></div>

    </div>
</body>
    <div th:replace="~{/public::public-js}"></div>

    <script th:src="@{/js/myjob/job/postJob.js}"></script>

</html>
